package com.dao;

import com.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * @ClassName UserDao
 * @Description 用户接口
 * @Author XiangQian
 * @Date 2022/7/6 17:51
 */

@Mapper
public interface UserDao extends BaseMapper<User> {

    /**
     * @Description 查询要新增信息用户
     * @param user
     */
    @Select("select * from user where name=#{name} or phone =#{phone}")
    User selectAllByPhoneAndName(User user);
}
